<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:body>
        <p:menubar autoDisplay="true">

            <p:submenu label="#{lbl.sistem_yonetimi}" icon="ui-icon ui-icon-signal" >
                <p:menuitem value="#{lbl.sistem_ayarlari}" url="/pages/yonetim/sistemAyarlari.jsf" />
                <p:menuitem value="#{lbl.kullanici_yonetimi}" url="/pages/yonetim/kullaniciIslemleri.jsf" />
                <p:menuitem value="#{lbl.rol_yonetimi}" url="/pages/yonetim/rolIslemleri.jsf" />
                <p:menuitem value="#{lbl.firma_yonetimi}" url="/pages/yonetim/firmaIslemleri.jsf" />
                <p:menuitem value="#{lbl.sube_yonetimi}" url="/pages/yonetim/subeIslemleri.jsf" />
                <p:menuitem value="#{lbl.yetki_yonetimi}" url="/pages/yonetim/yetkiIslemleri.jsf" />
            </p:submenu>

            <p:submenu label="#{lbl.sube_islemleri}" icon="ui-icon ui-icon-gear">
                <p:menuitem value="#{lbl.firma_bilgilerim}" url="/pages/firmaIslmemleri.jsf" />
                <p:menuitem value="#{lbl.sube_bilgilerim}" url="/pages/subeIslmemleri.jsf" />
                <p:menuitem value="#{lbl.urun_yonetimi}" url="/pages/urunIslmemleri.jsf" />
                <p:menuitem value="#{lbl.hizmet_yonetimi}" url="/pages/hizmetIslmemleri.jsf" />
                <p:menuitem value="#{lbl.kampanya_yonetimi}" url="/pages/kampanyaIslmemleri.jsf" />
                <p:menuitem value="#{lbl.personel_yonetimi}" url="/pages/personelIslemleri.jsf" />
            </p:submenu>

            <p:submenu label="#{lbl.musteri_islemleri}" icon="ui-icon ui-icon-transferthick-e-w">
                <p:menuitem value="#{lbl.musteri_yonetimi}" icon="ui-icon ui-icon-image" url="/pages/musteriIslemleri.jsf" />
                <p:menuitem value="#{lbl.arac_yonetimi}" icon="ui-icon ui-icon-shuffle" url="/pages/aracIslemleri.jsf" />
            </p:submenu>
            
            <p:submenu label="#{lbl.raporlama_islemleri}" icon="ui-icon ui-icon-transferthick-e-w">
                <p:menuitem value="#{lbl.musteri_raporu}" icon="ui-icon ui-icon-image" url="/pages/rapor/musteriRaporu.jsf" />
                <p:menuitem value="#{lbl.hizmet_satis_raporu}" icon="ui-icon ui-icon-shuffle" url="/pages/rapor/hizmetSatisRaporu.jsf" />
                <p:menuitem value="#{lbl.urun_satis_raporu}" icon="ui-icon ui-icon-shuffle" url="/pages/rapor/urunSatisRaporu.jsf" />
                <p:menuitem value="#{lbl.hasilat_raporu}" icon="ui-icon ui-icon-shuffle" url="/pages/rapor/hasilatRaporu.jsf" />
                <p:menuitem value="#{lbl.personel_is_raporu}" icon="ui-icon ui-icon-shuffle" url="/pages/personelIsRaporu.jsf" />
            </p:submenu>
            <p:menuitem value="#{lbl.cikis}" icon="ui-icon-extlink" url="/logout" />

            <f:facet name="options">

                <h:form id="selectLanguage">
                    <h:outputText style="margin-right:5px"
                                  value="kurum v1.12.0" />
                    <p:selectOneMenu style="margin-bottom: -8px;margin-right:5px"
                                     onchange="document.getElementById('selectLanguage').submit();"
                                     value="#{misafirKullaniciOzellikleri.locale}"
                                     valueChangeListener="#{misafirKullaniciOzellikleri.localeChanged}" >
                        <f:selectItems value="#{misafirKullaniciOzellikleri.countries}" var="country" 
                                       itemLabel="#{lbl[country.label]}" itemValue="#{country.value}" />
                    </p:selectOneMenu>
                    
                </h:form>
            </f:facet>
        </p:menubar>
    </h:body>
</html>
